import numpy as np

def generate_chrom(pop_size: int, variable_num: int) -> np.ndarray:
    chrom = np.empty((pop_size, variable_num))
    for i in range(pop_size):
        chrom[i, :] = np.random.permutation(variable_num) + 1
    return chrom
